importClass(java.io.File);
importClass(java.io.FileOutputStream);
importClass(java.io.OutputStream);
importClass(org.xhtmlrenderer.pdf.ITextRenderer);

var inputFile = attributes.get("src");
var url = new File(inputFile).toURI().toURL().toString();
var outputFile = attributes.get("dest");
var os = new FileOutputStream(outputFile);

var renderer = new ITextRenderer();
renderer.setDocument(url);
renderer.layout();
renderer.createPDF(os);

os.close();
